package com.wm.wmcrm.sys.controller;

import com.wm.wmcrm.common.annotation.SystemLog;
import com.wm.wmcrm.common.util.PageUtils;
import com.wm.wmcrm.sys.entity.SysMenu;
import com.wm.wmcrm.sys.model.SysMenuQueryDTO;
import com.wm.wmcrm.sys.service.ISysMenuService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单管理 前端控制器
 * </p>
 *
 * @author wm
 * @since 2023-02-11
 */
@RestController
@RequestMapping("/sys/sysMenu")
public class SysMenuController {
    @Resource
    ISysMenuService sysMenuService;

    @ApiOperation(value = "查询菜单",notes = "菜单")
    @GetMapping("/queryList")
    public List<SysMenu> queryList(){
        return sysMenuService.selectList();
    }

}
